package c.a.a.z.c;

import b.i.b.f;
import c.a.a.f0.a;
import c.a.a.f0.c;
import java.util.List;

/* compiled from: ColorKeyframeAnimation */
public class b extends f<Integer> {
    public b(List<a<Integer>> list) {
        super(list);
    }

    public Object f(a aVar, float f) {
        return Integer.valueOf(j(aVar, f));
    }

    public int j(a<Integer> aVar, float f) {
        Object obj = aVar.b;
        if (obj == null || aVar.c == null) {
            throw new IllegalStateException("Missing values for keyframe.");
        }
        int intValue = ((Integer) obj).intValue();
        int intValue2 = ((Integer) aVar.c).intValue();
        c cVar = this.e;
        if (cVar != null) {
            Integer num = (Integer) cVar.a(aVar.e, aVar.f.floatValue(), Integer.valueOf(intValue), Integer.valueOf(intValue2), f, d(), this.d);
            if (num != null) {
                return num.intValue();
            }
        }
        return f.s0(c.a.a.e0.f.b(f, 0.0f, 1.0f), intValue, intValue2);
    }
}
